package com.lyy.service.impl;

import com.lyy.service.ProductService;
import org.apache.dubbo.config.annotation.DubboService;

/**
 * @author Liangyaoyun
 */
//自定义版本号
@DubboService(validation = "1.0.0")
public class ProductServiceImpl implements ProductService {

    @Override
    public String getById(Long id) {
        return id == 1L ? "小米手机" : "苹果手机";
    }
}
